<!--{eval $home_run = true;}-->
<!--{eval $pageview = lang('home/template','blog');}-->
<!--{if !$_G['inajax']}-->
<!--{subtemplate home/space_header}-->
<!--{template home/space_site_left}-->
<!--{subtemplate home/space_short_profile}-->
<ul id="woogtv" class="tb cl">
	<li$actives[all]><a href="home.php?mod=space&username=$space[username]&do=blog&view=all">{lang view_all}</a></li>
    <li$actives[we]><a href="home.php?mod=space&username=$space[username]&do=blog&view=we">{lang friend_blog}</a></li>
    <li$actives[me]><a href="home.php?mod=space&username=$space[username]&do=blog&view=me">{lang my_blog}</a></li>
    <!--{if $space['self']}-->
    <li class="o y"><a href="home.php?mod=spacecp&ac=blog">{lang post_new_blog}</a></li>
    <!--{/if}-->
</ul>
<div class="bm block nobtop">
    <!--{if $classarr}-->
        <div class="tbmu dxb_bc">
            <a href="home.php?mod=space&username=$space[username]&do=blog&view=me&from=$_GET[from]"{if !$_get[classid]} class="a"{/if}>{lang all_blogs}</a><span class="pipe">|</span>
            <!--{loop $classarr $classid $classname}-->
                <!--{if $space[self]}-->
                <div id="classid{$classid}_menu" class="p_pop" style="display: none; zoom: 1;">
                    <a href="home.php?mod=spacecp&ac=class&op=edit&classid=$classid" id="c_edit_$classid" onclick="showWindow(this.id, this.href, 'get', 0);">{lang edit}</a>
                    <a href="home.php?mod=spacecp&ac=class&op=delete&classid=$classid" id="c_delete_$classid" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
                </div>
                <!--{/if}-->
                <a href="home.php?mod=space&username=$space[username]&do=blog&classid=$classid&view=me&from=$_GET[from]" id="classid$classid" onmouseover="showMenu(this.id);"{if $_get[classid]==$classid} class="a"{/if}>$classname</a><span class="pipe">|</span>
            <!--{/loop}-->
        </div>
    <!--{/if}-->
    <div class="bm_c dxb_bc">
        <!-- if $count -->
        <div id="feed_div" class="xld {if empty($diymode)}xlda{/if}">
<!--{else}-->
<!--{template common/header_ajax}-->
<!--{/if}--> 
        <!--{loop $list $k $value}-->
        	<!--{if $value}-->
            <dl class="bbda woopadd">
                <!--{if empty($diymode)}-->
                <dd class="m">
                    <div class="avt"><a href="home.php?mod=space&username=$value[username]" c="1"><!--{avatar($value[uid],small)}--></a></div>
                </dd>
                <!--{/if}-->
        
                <dt class="xs1">
                    <!--{eval $stickflag = isset($value['stickflag']) ? 0 : 1;}-->
                    <!--{if !$stickflag}--><span class="xi1">{lang stick}</span> &middot;<!--{/if}-->
                    <a href="home.php?mod=spacecp&ac=share&type=blog&id=$value[blogid]&handlekey=lsbloghk_{$value[blogid]}" id="a_share_$value[blogid]" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr xs1 xw0">{lang share}</a>
                    <a href="home.php?mod=space&username=$value[username]&do=blog&id=$value[blogid]"{if $value[magiccolor]} style="color: {$_G[colorarray][$value[magiccolor]]}"{/if}>$value[subject]</a>
                    <!--{if $value[status] == 1}--> <span class="xi1">({lang pending})</span><!--{/if}-->
                </dt>
                <dd>
                    <!--{if $value['friend']}-->
                    <span class="y"><a href="$theurl&friend=$value[friend]" class="xg1">{$friendsname[$value[friend]]}</a></span>
                    <!--{/if}-->
                    <!--{if empty($diymode)}--><a href="home.php?mod=space&username=$value[username]">$value[username]</a> <!--{/if}--><span class="xg1">$value[dateline]</span>
                </dd>
                <dd class="cl" id="blog_article_$value[blogid]">
                    <!--{if $value[pic]}-->
                        <div class="atc">
                            <a href="home.php?mod=space&username=$value[username]&do=blog&id=$value[blogid]"><img src="$value[pic]" alt="$value[subject]" class="tn" /></a>
                        </div>
                    <!--{/if}-->
                    $value[message]
                </dd>
                <dd class="xg1">
                    <!--{if $classarr[$value[classid]]}-->{lang personal_category}: <a href="home.php?mod=space&username=$value[username]&do=blog&classid=$value[classid]&view=me">{$classarr[$value[classid]]}</a><span class="pipe">|</span><!--{/if}-->
                    <!--{if $value[viewnum]}--><a href="home.php?mod=space&username=$value[username]&do=blog&id=$value[blogid]">$value[viewnum] {lang blog_read}</a><span class="pipe">|</span><!--{/if}-->
                    <a href="home.php?mod=space&username=$value[username]&do=blog&id=$value[blogid]#comment"><span id="replynum_$value[blogid]">$value[replynum]</span> {lang blog_replay}</a>
                    <!--{hook/space_blog_list_status $k}-->
                    <!--{if $_GET['view']=='me' && $space['self']}-->
                        <span class="pipe">|</span><a href="home.php?mod=spacecp&ac=blog&blogid=$value[blogid]&op=edit">{lang edit}</a><span class="pipe">|</span>
                        <a href="home.php?mod=spacecp&ac=blog&blogid=$value[blogid]&op=delete&handlekey=delbloghk_{$value[blogid]}" id="blog_delete_$value[blogid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
                        <!--{if empty($value['status'])}-->
                            <span class="pipe">|</span>
                            <a href="home.php?mod=spacecp&ac=blog&blogid=$value[blogid]&op=stick&stickflag=$stickflag&handlekey=stickbloghk_{$value[blogid]}" id="blog_stick_$value[blogid]" onclick="showWindow(this.id, this.href, 'get', 0);"><!--{if $stickflag}-->{lang stick}<!--{else}-->{lang cancel_stick}<!--{/if}--></a>
                        <!--{/if}-->
                    <!--{/if}-->
                    <!--{if $value['hot']}--><span class="hot">{lang hot} <em>$value[hot]</em> </span><!--{/if}-->
                </dd>
            </dl>
            <!--{/if}-->
        <!--{/loop}-->
<!--{if !$_G['inajax']}-->
        <!--{if $pricount}-->
            <p class="mtm">{lang hide_blog}</p>
        <!--{/if}-->
        </div>
        <div id="load_more"></div>
        <div id="loading_more_feed" style="display:none"></div>
        <!-- else -->
        <div class="emp" style="display:none;">{lang no_related_blog}</div>
        <!-- /if -->
	</div>
</div>
<!--{template home/space_site_right}-->
<script type="text/javascript">
	function fuidgoto(fuid) {
		var parameter = fuid != '' ? '&fuid='+fuid : '';
		window.location.href = 'home.php?mod=space&do=blog&view=we'+parameter;
	}
	var loadfeed = true;
	var url = 'home.php?mod=space&uid=$space[uid]&do=blog&order=dateline&from=space&type=$_G[gp_type]&view={$_GET[view]}';
</script>
<!--{template common/footer}-->
<!--{else}-->
<!--{template common/footer_ajax}-->
<!--{/if}--> 